﻿using System;
using System.ComponentModel.DataAnnotations;
using Util.Domains.Repositories;

namespace IterationLife.Domains.Sports.Queries {
    /// <summary>
    /// SportUsers查询实体
    /// </summary>
    public class SportUserQuery : QueryEntityBase {
        /// <summary>
        /// 体育用户编号
        /// </summary>
        [Display(Name="体育用户编号")]
        public Guid? SportUserId { get; set; }
        
        private string _partnerUserId = string.Empty;
        /// <summary>
        /// 合作方用户Id
        /// </summary>
        [Display(Name="合作方用户Id")]
        public string PartnerUserId {
            get { return _partnerUserId == null ? string.Empty : _partnerUserId.Trim(); }
            set{ _partnerUserId=value;}
        }
        
        private string _token = string.Empty;
        /// <summary>
        /// 身份标示
        /// </summary>
        [Display(Name="身份标示")]
        public string Token {
            get { return _token == null ? string.Empty : _token.Trim(); }
            set{ _token=value;}
        }
        
        private string _mobile = string.Empty;
        /// <summary>
        /// 手机号
        /// </summary>
        [Display(Name="手机号")]
        public string Mobile {
            get { return _mobile == null ? string.Empty : _mobile.Trim(); }
            set{ _mobile=value;}
        }
        /// <summary>
        /// 设备
        /// </summary>
        [Display(Name="设备")]
        public int? EquipmentType { get; set; }
        /// <summary>
        /// 起始创建时间
        /// </summary>
        [Display( Name = "起始创建时间" )]
        public DateTime? BeginCreationTime { get; set; }
        /// <summary>
        /// 结束创建时间
        /// </summary>
        [Display( Name = "结束创建时间" )]
        public DateTime? EndCreationTime { get; set; }        
        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name="创建人")]
        public Guid? CreatorId { get; set; }
        /// <summary>
        /// 起始最后修改时间
        /// </summary>
        [Display( Name = "起始最后修改时间" )]
        public DateTime? BeginLastModificationTime { get; set; }
        /// <summary>
        /// 结束最后修改时间
        /// </summary>
        [Display( Name = "结束最后修改时间" )]
        public DateTime? EndLastModificationTime { get; set; }        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [Display(Name="最后修改人")]
        public Guid? LastModifierId { get; set; }
        
        /// <summary>
        /// 添加描述
        /// </summary>
        protected override void AddDescriptions() {
            base.AddDescriptions();
            AddDescription( "体育用户编号", SportUserId );
            AddDescription( "合作方用户Id", PartnerUserId );
            AddDescription( "身份标示", Token );
            AddDescription( "手机号", Mobile );
            AddDescription( "设备", EquipmentType );
            AddDescription( "起始创建时间", BeginCreationTime );
            AddDescription( "结束创建时间", EndCreationTime );
            AddDescription( "创建人", CreatorId );
            AddDescription( "起始最后修改时间", BeginLastModificationTime );
            AddDescription( "结束最后修改时间", EndLastModificationTime );
            AddDescription( "最后修改人", LastModifierId );
        } 
    }
}
